package com.second.app.thread.stream;

import java.io.PipedInputStream;


/**
 * @author gyz
 * @date 2021/1/26 17:55
 */
public class ThreadRead extends Thread {

    private ReadData readData;

    private PipedInputStream inputStream;

    public ThreadRead(ReadData readData, PipedInputStream inputStream) {
        this.readData = readData;
        this.inputStream = inputStream;
    }

    @Override
    public void run() {
        readData.readMethod(inputStream);
    }
}
